import request from '@/utils/request'

// 基础数据管理树列表
export const gitOrganizationListAPI = () => request({
  url: '/business-hall/tree'
})

// 获取员工分页数据
export const getUserPageAPI = (params) => request({ url: '/business-hall/user/page', params })
// 机构详情
export const OrganizationAPI = (id) => {
  return request({
    url: `/business-hall/${id}`
  })
}
// 查询省-和市-县城
export const gitDistrictAPI = (id) => {
  return request({
    url: `/areas/children?parentId=${id}`
  })
}
// 运费模板列表
export const freightStencilListAPI = () => {
  return request({
    url: '/carriages'
  })
}
// 运费模板删除列表数据
export const deleteStencilAPI = (id) => {
  return request({
    url: `/carriages/${id}`,
    method: 'delete'
  })
}
// 新增和编辑运费模板
export const addTemplateAPI = (data) => {
  return request({
    url: '/carriages',
    method: 'POST',
    data
  })
}
